diff options
| author | real-zephex <[email protected]> | 2024-05-29 15:16:24 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-29 15:16:24 +0530 |
| commit | 0c10f208cbc82f99d7bb316a8680a8e9fbb6cb1e (patch) | |
| tree | 8a86f6199836b03e3a0296e754a2ce4bab998026 /src/app/anime/[id] | |
| parent | Update README.md (diff) | |
| parent | reverted back from next js 15 and react compiler due to some compatibility is... (diff) | |
| download | dramalama-0c10f208cbc82f99d7bb316a8680a8e9fbb6cb1e.tar.xz dramalama-0c10f208cbc82f99d7bb316a8680a8e9fbb6cb1e.zip | |
Merge pull request #42 from real-zephex/series-overhaul
⚡️ perf(deps): upgrade to react 19 and next js 15, add loading screen, drop manga support
Diffstat (limited to 'src/app/anime/[id]')
| -rw-r--r-- | src/app/anime/[id]/page.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/anime/[id]/page.jsx b/src/app/anime/[id]/page.jsx index 4263005..b121400 100644 --- a/src/app/anime/[id]/page.jsx +++ b/src/app/anime/[id]/page.jsx @@ -9,7 +9,10 @@ const AnimeInfoHomepage = async ({ params }) => { const id = params.id;
const data = await anime_info(id);
- preFetchVideoLinks(data.episodes);
+ if (data.episodes.length > 50) {
+ } else {
+ preFetchVideoLinks(data.episodes);
+ }
return (
<section
|